package com.caimiao.miao.widget;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.caimiao.miao.R;

public class TicketStateDialog extends BasePromptDialog {
    private TextView mTvContent;

    public TicketStateDialog(Context context) {
        super(context);
        setTitle(R.string.dialog_ticket_error);
        View root = LayoutInflater.from(context).inflate(R.layout.dialog_ticket, null);
        mTvContent = root.findViewById(R.id.dialogTicketTvContent);
        setContent(root);
        setBtnCount(2);
        setLeft(R.string.dialog_ticket_btn_cancel);
        setRight(R.string.dialog_ticket_btn_continue);
        setBtnColor(context.getResources().getColor(R.color.colorRed),
                context.getResources().getColor(R.color.colorGreen),
                context.getResources().getColor(R.color.colorDark));
        setDisableCancel();
    }

    public void setContent(int text) {
        mTvContent.setText(text);
    }
}
